package mx.messaging;

extern class AbstractProducer extends MessageAgent {
	var autoConnect : Bool;
	var defaultHeaders : Dynamic;
	var reconnectAttempts : Int;
	var reconnectInterval : Int;
	function new() : Void;
	function connect() : Void;
	function send(message : mx.messaging.messages.IMessage) : Void;
	private var _shouldBeConnected : Bool;
	private function reconnect(event : flash.events.TimerEvent) : Void;
	private function startReconnectTimer() : Void;
	private function stopReconnectTimer() : Void;
}
